{namespace ifp=Tx_IfpCurriculum2_ViewHelpers}
<f:layout name="Admin" />

<f:section name="main">
	<div class="csc-header csc-header-n1">
		<h1 class="csc-firstHeader">Curriculum</h1>
	</div>

	<f:flashMessages />
	<div class="trcontainer">

		<table class="currtable"
			style="border-collapse: collapse; width: 100%; margin-bottom: 0.5em;">
			<tr class="trohead2">
				<th>Kursnr</th>
				<th>Modul</th>
				<th>Kurs</th>
			</tr>

			<f:for each="{kursstamms}" as="kursstamm">
				<tr class="trelemento">
					<td width="30px"
						onclick="<ifp:CreateURI action='adminshow' arguments='{kursstamm : kursstamm}' />">{kursstamm.kursNr}</td>
					<td width="50px"
						onclick="<ifp:CreateURI action='adminshow' arguments='{kursstamm : kursstamm}' />">{kursstamm.gkvatext}</td>
					<td>{kursstamm.titel}<br/><f:for each="{kursstamm.kurse}" as="kurs">
							<f:link.action controller="Kurs" action="adminshow"
								arguments="{kurs : kurs}"><f:if condition="{kurs.inaktiv}"><f:then><span style="text-decoration: line-through;">V.: {kurs.version}, {kurs.titel}</span></f:then><f:else>V.: {kurs.version}, {kurs.titel}</f:else></f:if>
				
						</f:link.action><br/>

						</f:for>
					<td>
				</tr>
			</f:for>

		</table>
	</div>
	<p><f:link.action action="new">Neuer Kursstamm</f:link.action></p>

</f:section>